package cn.com.iscs.sqlProject.mapper;

import cn.com.iscs.sqlProject.base.IBasicDao;
import cn.com.iscs.sqlProject.entity.CmBusinessServiceRule;
import cn.com.iscs.sqlProject.entity.CmCustomerServiceCode;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CmBusinessServiceRuleMapper extends IBasicDao<CmBusinessServiceRule> {
	

	/**
	 * 根据服务范围获取对应的客户或服务类型
	 * @param serviceCodeType
	 * @param serviceCode
	 * @param codeType
	 * @return
	 */
	List<CmCustomerServiceCode> getTypeByServiceCode(@Param("serviceCodeType") String serviceCodeType,
	                                                 @Param("serviceCode") String serviceCode, @Param("codeType") String codeType);

	/**
	 * 获取我是谁对应的需要展示的选项
	 * @param serviceCodeType
	 * @param serviceCode
	 * @param codeType
	 * @return
	 */
	public List<CmCustomerServiceCode> getCodesByServiceCode(@Param("serviceCodeType") String serviceCodeType,
	                                                         @Param("serviceCode") String serviceCode, @Param("codeType") String codeType);

}